<template>
    <div>
        <van-notice-bar left-icon="volume-o" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。"></van-notice-bar>
        <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item>1</van-swipe-item>
            <van-swipe-item>2</van-swipe-item>
            <van-swipe-item>3</van-swipe-item>
            <van-swipe-item>4</van-swipe-item>
        </van-swipe>
        <router-link to="/notice">直接跳转</router-link>

        <van-button type="info" @click="goPage()">js跳转</van-button>

        <van-grid :column-num="3"><van-grid-item v-for="value in 6" :key="value" icon="photo-o" text="文字" /></van-grid>
    </div>
</template>

<script>
module.exports = {
    data() {
        return {};
    },
    methods: {
        goPage() {
            router.push('notice');
        }
    },
    computed: {}
};
</script>

<style>
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
}
</style>
